package com.juyu.reader.author.dao;

import java.util.List;
import com.juyu.reader.author.model.BookChapter;

public interface BookChapterDao {

	public List<BookChapter> findBookChapter(BookChapter bookChapter);

	public List<BookChapter> findBookChapterById(int chapterId);

	public List<BookChapter> findBookChapterPublish(BookChapter bookChapter);

	public List<BookChapter> findBookChapterLastSeq(int bookId);

	public List<BookChapter> findBookChapterLastPublish(int bookId);

	public int countBookChapter(BookChapter bookChapter);

	public int countBookChapterPublish(BookChapter bookChapter);

	public int insertBookChapter(BookChapter bookChapter);

	public int deleteBookChapter(BookChapter bookChapter);

	public int publishBookChapter(BookChapter bookChapter);
	
	public int updateBookChapter(BookChapter bookChapter);
}
